package com.ruiysoft.entity.integral;


import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author liyahui
 * @since 2019-04-13
 */
@TableName("integral_conf")
public class IntegralConf extends Model<IntegralConf> {

    private static final long serialVersionUID = 1L;

    /**
     * 汇率（积分：人民币例5代表5积分=1块）
     */
    private Integer rate;

    @TableId("shop_id")
    private Long shopId;

    public Integer getRate() {
        return rate;
    }

    public IntegralConf setRate(Integer rate) {
        this.rate = rate;
        return this;
    }
    public Long getShopId() {
        return shopId;
    }

    public IntegralConf setShopId(Long shopId) {
        this.shopId = shopId;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.shopId;
    }

    @Override
    public String toString() {
        return "IntegralConf{" +
        "rate=" + rate +
        ", shopId=" + shopId +
        "}";
    }
}
